package com.tedu.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.tedu.pojo.Emp;

public interface EmpMapper {
	@Select("select * from emp")
	public List<Emp> findAll();
	
	@Insert("insert into emp value(null,#{name},#{job},#{salary})")
	public int insert(Emp emp);
	
	@Update("update emp set job=#{job},salary=#{salary} where id=#{id}")
	public int update(Emp emp);
	
	@Delete("delete from emp where id=#{id}")
	public int delete(Integer id);

}
